﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Commerce.Contracts;

namespace MusicWorks.Service.DataContracts
{
    public class TargetingContex : BaseCommerceEntity
    {
        public const string ModelNameDefinition = "TargetingContext";

        public TargetingContex() : base()
        {
            _commerceEntity = new CommerceEntity(ModelNameDefinition);
        }

        public TargetingContex(CommerceEntity commerceEntity) : base(commerceEntity)
        {
           
        }

        public string PageGroup
        {
            get { return _commerceEntity.GetPropertyValue(PropertyName.PageGroup) as string; }
            set { _commerceEntity.SetPropertyValue(PropertyName.PageGroup, value); }
        }

        public string ChannelName
        {
            get { return _commerceEntity.GetPropertyValue(PropertyName.ChannelName) as string; }
            set { _commerceEntity.SetPropertyValue(PropertyName.ChannelName, value); }
        }


        public class PropertyName : CommerceEntity.PropertyName
        {
            public const string PageGroup = "PageGroup";
            public const string ChannelName = "ChannelName";
        }


    }
}
